home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 8 / Power CD-ROM 8.iso / dos / grabb397 / docfiles.sfx / GR4AI.DOC < prev    next >
Encoding:
Text File  |  1994-05-14  |  19.5 KB  |  402 lines

  1.  
  2.  
  3.                                     GRABBER/AI(tm)
  4.                            8514/A Adapter Interface Version
  5.  
  6.                             Release 2.00S  Shareware Issue
  7.                            --------------------------------
  8.  
  9.                               The Screen Capture Program
  10.                            for MS-DOS and 8514/A-Compatible
  11.                                     Video Graphics
  12.  
  13.  
  14.                           DOCUMENTATION AND TECHNICAL NOTES
  15.                                      May 14, 1994
  16.  
  17.                                 Copyright 1987-1994 by
  18.                                    Gerald A. Monroe
  19.                                  All rights reserved.
  20.  
  21.  
  22.                  +-------------------------------------------------+
  23.                  |  Although they are shareware, GR4AI and this    |
  24.                  |  documentation file are copyrighted.  They are  |
  25.                  |  not in the  public  domain  and they are  not  |
  26.                  |  "freeware."   Please  consult  page 6  of the  |
  27.                  |  REGISTER.DOC  file  for  important  copyright  |
  28.                  |  information and license provisions.            |
  29.                  +-------------------------------------------------+
  30.  
  31.  
  32.                Thank you  for your interest in  the GRABBER(tm) screen
  33.                capture system!
  34.  
  35.                The GRABBER  package is being marketed  in this special
  36.                form as shareware.  This means you have the opportunity
  37.                to  use and evaluate it  for 30 days  before you decide
  38.                whether  to buy.   If  you  continue to  use GRPCX.EXE,
  39.                GRABBER.EXE, any of its "offspring" programs, or any of
  40.                the other  programs in the GRABBER  package beyond such
  41.                30-day  period,  then you  are  required  to send  your
  42.                registration  fee to  the  publisher according  to  the
  43.                instructions in the REGISTER.DOC file.  When you regis-
  44.                ter, you will receive  a copy of the latest  release of
  45.                the registered GRABBER package that you order.  You may
  46.                not continue  using GRABBER  beyond such 30-day  period
  47.                without registering.  For registration instructions and
  48.                a complete statement  of your license to use this soft-
  49.                ware, please consult the REGISTER.DOC file.
  50.  
  51.                               Gerald A. Monroe
  52.                               P.O. Box 770906
  53.                               Cleveland, Ohio 44107, U.S.A.
  54.                               CompuServe Mail:  72321,1257
  55.                               Fax:  (216) 521-6060
  56.  
  57.           IBM  and PC  are  trademarks of  International Business  Machines
  58.           Corporation.   MS-DOS  and  Windows are  trademarks of  Microsoft
  59.           Corporation.
  60.  
  61.  
  62.                                   Table of Contents
  63.  
  64.  
  65.                Shareware Registration and License Information .....  1
  66.  
  67.                Overview of GR4AI.EXE ..............................  3
  68.  
  69.                About this documentation ...........................  4
  70.  
  71.                Using GRABBER and GR4AI simultaneously .............  4
  72.  
  73.                Modifying the GR4AI hotkey .........................  4
  74.  
  75.                GR4AI's audible error indicators ...................  5
  76.  
  77.                GR4AI installation options, including the following:
  78.                  *  DEFAULTDRIVE
  79.                  *  MOUSE and NOMOUSE
  80.                  *  UNLOAD
  81.                  *  SOUND and NOSOUND
  82.                  *  PROMPT and NOPROMPT
  83.                  *  NOSWAP
  84.                  *  NOEMS
  85.                  *  NOUMB
  86.                  *  INT=nn
  87.                  *  INT=OFF
  88.                  *  BATCHCAPTURE
  89.                  *  BATCHCAPTURE:filename .........................  5
  90.  
  91.                Offspring file compatibility with other systems ....  6
  92.  
  93.                Offspring file command-line options ................  6
  94.  
  95.                Converting GR4AI offspring to PCX and GIF formats ..  7
  96.  
  97.                Calling GR4AI from your own programs ...............  8
  98.  
  99.  
  100.           GR4AI(tm)        Documentation & Technical Notes      Page 3 of 8
  101.  
  102.  
  103.  
  104.           OVERVIEW OF GR4AI.EXE
  105.           ----------------------
  106.  
  107.           GR4AI(tm) is an alternative version of the GRABBER screen capture
  108.           program.   It is designed exclusively  for capturing high-resolu-
  109.           tion 640 x 480 and 1024 x 768 graphic images from PC systems that
  110.           are compatible with  the IBM 8514/A Adapter  Interface, and which
  111.           are running in "real mode" under MS-DOS.  (GR4AI does not capture
  112.           screens from Microsoft Windows or Windows applications.)
  113.  
  114.           The Adapter Interface,  or "AI," is a  programming interface that
  115.           lets application  programs work  with your high-resolution  video
  116.           adapter.   Usually, the AI  is loaded as  a memory-resident (TSR)
  117.           program in your computer's memory.  When it is present, it allows
  118.           GR4AI to capture certain types of high-resolution graphics.
  119.  
  120.           GR4AI can only capture a screen if the foreground program that is
  121.           generating the image  is actually using the  AI to do  its screen
  122.           work.  Note that  this is not always  the case.  For  example, if
  123.           you have  an IBM 8514/A  adapter, or another  manufacturer's card
  124.           that  is compatible with IBM's 8514/A at the register level (such
  125.           as  an ATI 8514/Ultra, Graphics Ultra  or Graphics Vantage card),
  126.           then  it is possible for  some application programs  to work with
  127.           the  screen by writing directly  to the adapter's hardware regis-
  128.           ters  and ignoring the AI  completely.  GR4AI  cannot capture any
  129.           screens  from such applications,  because unless the  AI is being
  130.           used  for screen  output, GR4AI has  no way  of knowing  that the
  131.           adapter is in use at all.
  132.  
  133.           Therefore,  if you  have an  application from  which you  want to
  134.           capture  screens,  and the  application's  installation or  setup
  135.           allows you  to choose between AI-compatible  and 8514/A register-
  136.           level compatible video, then  you should choose the AI-compatible
  137.           option.
  138.  
  139.           Whatever kind of  video hardware is  installed, GR4AI expects  to
  140.           find an AI driver resident in memory when you ask it to capture a
  141.           screen.  If an AI  driver is not present, GR4AI will  not capture
  142.           the  screen.  (With the IBM 8514/A and the ATI 8514/A-compatibles
  143.           mentioned above, the  AI driver  is called HDILOAD.EXE.   If  you
  144.           have a different brand of adapter,  the driver file may be called
  145.           by a different name.)
  146.  
  147.           Note that  you do not have  to have an adapter  that is register-
  148.           level compatible with the 8514/A in order to use GR4AI.   All you
  149.           need is an adapter that comes  supplied with an AI driver, and an
  150.           application program that uses the AI for its screen output.
  151.  
  152.  
  153.           GR4AI(tm)        Documentation & Technical Notes      Page 4 of 8
  154.  
  155.  
  156.  
  157.           ABOUT THIS DOCUMENTATION
  158.           -------------------------
  159.  
  160.           GR4AI  can be installed  in memory and operated  in much the same
  161.           way as GRABBER.EXE, and the two programs have a very similar look
  162.           and feel.  For the most part, this documentation for GR4AI covers
  163.           only the aspects  of GR4AI which differ from GRABBER.EXE.  To use
  164.           GR4AI effectively, you should read the GRABBER program documenta-
  165.           tion and become familiar with GRABBER's operation.
  166.  
  167.  
  168.  
  169.           USING GRABBER and GR4AI SIMULTANEOUSLY
  170.           ---------------------------------------
  171.  
  172.           GR4AI is designed to  be compatible with GRABBER.   Both programs
  173.           can be installed in memory and used at the same time, but only if
  174.           you specify the "INT=OFF"  command-line switch when you initially
  175.           load GR4AI.EXE in memory.
  176.  
  177.           The default "hotkey" sequence for GR4AI is [Ctrl Alt  F10].  That
  178.           is,  you hold down the [Ctrl]  key and the [Alt]  key at the same
  179.           time, then press the [F10] key, then release all three keys.
  180.  
  181.           As  in GRABBER, the MOUSE command-line option in GR4AI allows you
  182.           to  capture the screen  by holding down the  left and right mouse
  183.           buttons  simultaneously  for one  or two  seconds.   If  you have
  184.           installed both GRABBER.EXE and  GR4AI.EXE in memory simultaneous-
  185.           ly, you  should not  use the  MOUSE switch  to  enable the  mouse
  186.           hotkey with both programs.  Strange results are almost guaranteed
  187.           to occur, and  it may even lock up your computer when you use the
  188.           mouse hotkey.   It is  acceptable to  use the  MOUSE switch  with
  189.           either GR4AI or GRABBER, but not both.
  190.  
  191.  
  192.  
  193.           MODIFYING THE GR4AI HOTKEY
  194.           ---------------------------
  195.  
  196.           GR4AI  allows you to modify your hotkey sequence from the default
  197.           [Ctrl  Alt F10] to practically any other key sequence you choose.
  198.           In this respect,  GR4AI is  exactly like  GRABBER.   There is  no
  199.           separate  documentation  here  which  covers  the  procedure  for
  200.           changing your GR4AI  hotkey.   GR4AI uses the  exact same  hotkey
  201.           procedures  as GRABBER.   You can  read about these  in the GRAB-
  202.           BER.DOC manual, at page 33 and at Appendices A and B.  (To view a
  203.           list of valid KEY= codes for  GR4AI, use the command GR4AI KEY=?.
  204.           To view a list of valid SHIFT= codes, enter GR4AI SHIFT=?.)
  205.  
  206.  
  207.           GR4AI(tm)        Documentation & Technical Notes      Page 5 of 8
  208.  
  209.  
  210.  
  211.           GR4AI's AUDIBLE ERROR INDICATORS
  212.           ---------------------------------
  213.  
  214.           If you  press  GR4AI's hotkey  and hear  one or  two short,  low-
  215.           pitched tones from your PC speaker, it means that GR4AI is unable
  216.           to capture the screen because an error condition exists.
  217.  
  218.           One  low-pitched tone indicates  that no  AI driver  is currently
  219.           loaded in memory.
  220.  
  221.           Two low-pitched tones  indicate that  an AI driver  is loaded  in
  222.           memory,  but that  it is  not presently  in  use by  a foreground
  223.           application,  or that  the  adapter is  presently operating  in a
  224.           video mode that exceeds  GR4AI's capabilities.  GR4AI is  able to
  225.           capture these AI modes:
  226.  
  227.                *  640 x 480, 16 colors       *  640 x 480, 256 colors
  228.                *  1024 x 768, 16 colors      *  1024 x 768, 256 colors
  229.                *  1280 x 1024, 16 colors     *  1280 x 1024, 256 colors
  230.  
  231.           (Three low-pitched  tones indicate  a probable disk  error during
  232.           the screen  capture  process.    See "Errors  During  the  Screen
  233.           Capture" in the GRABBER program documentation.)
  234.  
  235.  
  236.  
  237.           GR4AI INSTALLATION OPTIONS
  238.           ---------------------------
  239.  
  240.           GR4AI accepts the  following command-line configuration  options.
  241.           Each of these optional switches can be added to the GR4AI command
  242.           line to  alter GR4AI's default  mode of operation.   All of these
  243.           switches are also  available in the GRABBER.EXE program, and none
  244.           is separately  described here.   For complete  details concerning
  245.           the  purpose  of these  options and  how  they work,  consult the
  246.           section "Grabber  Installation Options"  beginning on page  14 in
  247.           the GRABBER program documentation.
  248.  
  249.                *  DEFAULTDRIVE          (specifies capture destination)
  250.                *  MOUSE and NOMOUSE     (enables/disables mouse hotkey)
  251.                *  UNLOAD                (removes GR4AI from memory)
  252.                *  SOUND and NOSOUND     (enables/disables sounds)
  253.                *  PROMPT and NOPROMPT   (enables/disables screen prompts)
  254.                *  NOSWAP                (disables swapping of DOS kernel)
  255.                *  NOEMS                 (disables GR4AI's EMS memory usage)
  256.                *  NOUMB                 (disables GR4AI'S UMB memory usage)
  257.                *  INT=nn                (specifies block of interrupt
  258.                                          vectors for redirecting IRQ0-IRQ7)
  259.                *  INT=OFF               (disables redirection of IRQ0-IRQ7)
  260.                *  BATCHCAPTURE          (causes immediate screen capture)
  261.                *  BATCHCAPTURE:filename (causes immediate screen capture to
  262.                                          file specified as "filename")
  263.  
  264.  
  265.           GR4AI(tm)        Documentation & Technical Notes      Page 6 of 8
  266.  
  267.  
  268.  
  269.           OFFSPRING FILE COMPATIBILITY WITH OTHER SYSTEMS
  270.           ------------------------------------------------
  271.  
  272.           As mentioned above  on page  4, GR4AI can  capture six  different
  273.           types of images from AI-compatible video adapters.  The six types
  274.           are:
  275.  
  276.                *  640 x 480, 16 colors       *  640 x 480, 256 colors
  277.                *  1024 x 768, 16 colors      *  1024 x 768, 256 colors
  278.                *  1280 x 1024, 16 colors     *  1280 x 1024, 256 colors
  279.  
  280.           Each type  of image can be  displayed on a  different system than
  281.           the one from which it was originally captured, if the destination
  282.           system  has an  AI driver  (such as  IBM's or  ATI's HDILOAD.EXE)
  283.           resident in memory  (and assuming that the destination system has
  284.           enough  video  memory and  a monitor  that  is capable  enough to
  285.           display the particular graphics mode).
  286.  
  287.           In addition,  each type  of image  can be  displayed on  a system
  288.           which is compatible with  the VESA video BIOS extension,  even if
  289.           no  AI driver is loaded (and assuming that the destination system
  290.           has enough video  memory and a monitor that  is capable enough to
  291.           display the particular graphics mode).
  292.  
  293.           A 16-color, 640  x 480 offspring image can be  ported to any VGA-
  294.           compatible  system -- even  one which does not  have an AI driver
  295.           loaded and is not VESA-compatible.
  296.  
  297.           Some types of screens have special video memory requirements:
  298.  
  299.           *  1280 x 1024 x 256 images require at least 2 Mb of video memory
  300.           *  1280 x 1024 x 16 images require at least 1 Mb of video memory
  301.           *  1024 x 768 x 256 images require at least 1 Mb of video memory
  302.           *  1024 x 768 x 16 images require at least 512 Kb of video memory
  303.           *  640 x 480 x 256 images require at least 512 Kb of video memory
  304.  
  305.  
  306.  
  307.           OFFSPRING FILE COMMAND-LINE OPTIONS
  308.           ------------------------------------
  309.  
  310.           GR4AI offspring  files support  the same command-line  options as
  311.           are supported by GRABBER.EXE offspring  files.  This includes the
  312.           "FADEIN" and "FADEOUT" options, the  /Tn option for timed  execu-
  313.           tion, the  /F and /N options for exiting without erasing, and the
  314.           /K  keylist option.  Each of these  options is fully explained in
  315.           the GRABBER program documentation, starting at page 22.
  316.  
  317.           However, you should  note that  for technical reasons  it is  not
  318.           always  safe to use the /F and /N command-line options with GR4AI
  319.           offspring files.  These two options can cause a system crash when
  320.           you are executing a GR4AI offspring at the DOS prompt or within a
  321.           batch file,  and should not be used in those situations.  You may
  322.  
  323.  
  324.           GR4AI(tm)        Documentation & Technical Notes      Page 7 of 8
  325.  
  326.  
  327.  
  328.           use  these two  options  when executing  a  GR4AI offspring  from
  329.           inside another program by  way of a SHELL or  EXEC-type function,
  330.           but  only if the parent  program re-initializes the  AI (with the
  331.           AI's HINIT or HSYNC functions) or closes the  AI (with the HCLOSE
  332.           function) immediately upon return from the child program.
  333.  
  334.  
  335.           CONVERTING GR4AI OFFSPRING TO .PCX and .GIF
  336.           --------------------------------------------
  337.  
  338.           GR4AI  is  supplied  along  with two  companion  utilities  which
  339.           convert captured AI screens to the PCX and GIF file formats.  The
  340.           utilities  are called  GRAI2PCX  and GRAI2GIF.   These  utilities
  341.           function in  exactly the same way  as the GR2PCX and  GR2GIF pro-
  342.           grams  which are also included in this GRABBER package.  However,
  343.           here  is the difference:   GRAI2PCX and GRAI2GIF  are designed to
  344.           convert only offspring screens created by GR4AI.EXE, while GR2PCX
  345.           and  GR2GIF are  designed  to  convert  only screens  created  by
  346.           GRABBER.EXE.
  347.  
  348.           For  instructions on  using  GRAI2PCX and  GRAI2GIF, consult  the
  349.           CONVERT.DOC documentation file.
  350.  
  351.  
  352.           GR4AI(tm)        Documentation & Technical Notes      Page 8 of 8
  353.  
  354.  
  355.  
  356.           PROGRAMMERS NOTE:
  357.           CALLING GR4AI FROM YOUR OWN PROGRAMS
  358.           -------------------------------------
  359.  
  360.           If you are  a programmer  developing your own  software, you  can
  361.           invoke  GR4AI to capture the screen from within your own program,
  362.           assuming that GR4AI is already resident in memory.
  363.  
  364.           This is accomplished by  using GR4AI's external programming hook,
  365.           which  is really  a customized  call to Interrupt  16h, described
  366.           below.  You can write  a routine to implement this hook  in 80x86
  367.           assembly language or in any high-level programming language which
  368.           supports BIOS-level interrupt calls.
  369.  
  370.  
  371.           CUSTOMIZED INTERRUPT 16H TO INVOKE GR4AI, SERVICE 4741H
  372.           --------------------------------------------------------
  373.  
  374.           On entry:   AX = 4741h
  375.                          DL = 0    (to check only if GR4AI is resident)
  376.                          DL = 1    (to capture the current screen)
  377.  
  378.           On return:  AX = 4147h   (if GR4AI is installed in memory)
  379.  
  380.                     For DL=0
  381.                      or DL=1:   BL contains the logical drive to which
  382.                                 the capture would be attempted (DL=0)
  383.                                 or was attempted (DL=1).  0=default drive,
  384.                                 1=drive A, 2=drive B, and so forth.
  385.  
  386.                     For DL=1:
  387.  
  388.                        No -->   Capture successful.  ES:DX points to
  389.                     Carry       an ASCIIZ string which contains the
  390.                      Flag       [drive:][\path\]filename of the newly
  391.                                 created offspring (drive also coded in BL).
  392.  
  393.                     Carry -->   If DX = FFFFh, then a capture attempt
  394.                      Flag       failed due to a critical disk error or
  395.                       Set       disk-full error on the logical drive
  396.                                 encoded in BL.  (Speaker beeped in either
  397.                                 case.)
  398.  
  399.                                 If DX does not equal FFFFh, capture was
  400.                                 not attempted.  GR4AI was busy servicing
  401.                                 a prior capture request, or some other disk
  402.                                 I/O was occurring, or DOS was not in a re-
  403.                                 enterable state.  Try again momentarily.
  404.  
  405.  
  406.  
  407.  
  408.                           * * *    End of GR4AI.DOC   * * *
  409.